package com.netposa.datawarehouse.aggregator.search;

import com.google.common.collect.Maps;
import java.util.HashMap;
import java.util.Map;

public class ResourceResult {
   private Map<String, Object> data;
   private Map<String, String> requestIdMap;

   public void addRequestId(String typeName, String requestId) {
      this.requestIdMap.put(typeName, requestId);
   }

   public Map<String, Object> getData() {
      return this.data;
   }

   public Map<String, String> getRequestIdMap() {
      return this.requestIdMap;
   }

   public void setData(Map<String, Object> data) {
      this.data = data;
   }

   public void setRequestIdMap(Map<String, String> requestIdMap) {
      this.requestIdMap = requestIdMap;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof ResourceResult)) {
         return false;
      } else {
         ResourceResult other = (ResourceResult)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$data = this.getData();
            Object other$data = other.getData();
            if (this$data == null) {
               if (other$data != null) {
                  return false;
               }
            } else if (!this$data.equals(other$data)) {
               return false;
            }

            Object this$requestIdMap = this.getRequestIdMap();
            Object other$requestIdMap = other.getRequestIdMap();
            if (this$requestIdMap == null) {
               if (other$requestIdMap != null) {
                  return false;
               }
            } else if (!this$requestIdMap.equals(other$requestIdMap)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof ResourceResult;
   }

   public int hashCode() {
      
      int result = 1;
      Object $data = this.getData();
      result = result * 59 + ($data == null ? 43 : $data.hashCode());
      Object $requestIdMap = this.getRequestIdMap();
      result = result * 59 + ($requestIdMap == null ? 43 : $requestIdMap.hashCode());
      return result;
   }

   public String toString() {
      return "ResourceResult(data=" + this.getData() + ", requestIdMap=" + this.getRequestIdMap() + ")";
   }
}
